# coding: utf-8
from sqlalchemy import Boolean, Column, Date, String
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()
metadata = Base.metadata


class Stock(Base):
    __tablename__ = 'stock'
    __table_args__ = {'schema': 'stock_market'}

    code = Column(String(32), primary_key=True)
    sname = Column(String(128), nullable=False)
    exchange = Column(String(128))
    ah = Column(Boolean)
    entry_time = Column(Date)
